//
//  LoginView.m
//  UI_豆瓣更新版
//
//  Created by dllo on 16/1/3.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "LoginView.h"

@implementation LoginView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatLoginView];
    }
    return self;
}

- (void)creatLoginView {
    // 左Label
    self.myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 110, 50)];
//    _myLabel.textAlignment = NSTextAlignmentCenter;
    _myLabel.font = [UIFont systemFontOfSize:25];
    [self addSubview:_myLabel];
    [_myLabel release];
    
    // 右textField
    self.myTextField = [[UITextField alloc] initWithFrame:CGRectMake(110, 0, 195, 50)];
    _myTextField.layer.borderWidth = 2;
    _myTextField.layer.borderColor = [UIColor lightGrayColor].CGColor;
    _myTextField.layer.cornerRadius = 10;
    // 删除按键
    _myTextField.clearButtonMode = UITextFieldViewModeAlways;
    _myTextField.clearsOnBeginEditing = YES;
    // 字体
    _myTextField.font = [UIFont systemFontOfSize:25];
    [self addSubview:_myTextField];
    [_myTextField release];
    
}





/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
